# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-xmlschema
pkgver=1.11.3
pkgrel=0
pkgdesc="XML schema validator and conversion library"
url="https://github.com/sissaschool/xmlschema"
arch="noarch"
license="MIT"
depends="py3-elementpath"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/xmlschema/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/xmlschema-$pkgver/"

build() {
	python3 setup.py build
}

check() {
	# disabled test requires install/fake install
	pytest \
		--deselect tests/test_etree_import.py::TestElementTreeImport::test_element_tree_import_script
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
39677ff186b662977bf960ea467183416309cc6b278cc3225265e47bbe72c5fd1c027bc23c8da4813bd2ac2d3aac573e6c2272c3378c3ba60cf5ecd4fac9627a  py3-xmlschema-1.11.3.tar.gz
"
